package com.chaos.gateway.service.auth;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chaos.gateway.dto.ClientPermissionDto;
import com.chaos.gateway.entity.OauthClientDetailsPermission;
import com.chaos.gateway.mapper.OauthClientDetailsPermissionMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
*
* @author Jacky.Cui
* @since 2024-11-21
*/
@Slf4j
@Component
public class OauthClientDetailsPermissionService extends ServiceImpl<OauthClientDetailsPermissionMapper, OauthClientDetailsPermission> {


    //?? 需要梳理  应该是用来做clientID 权限管控逻辑
    public List<ClientPermissionDto> getPermissionListByClientId(String clientId) {
        return baseMapper.getPermissionListByClientId(clientId);
    }
}
